package com.mocha.websocket.handler;


import com.mocha.common.core.MochaException;
import com.mocha.websocket.command.MochaTextParam;
import com.mocha.websocket.metadata.MochaTextMessage;

/**
 * 命令处理
 * @param <T>
 */
public interface MochaTextHandler<T extends MochaTextMessage> {
    void handle(MochaTextParam<T> command)throws MochaException;
}
